<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>

<%@ taglib prefix="s" uri="/struts-tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<s:head theme="ajax" />
    <head>
    	<link rel="stylesheet" type="text/css" media="all" href="<s:url value='/css/main.css'/>" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Aplicação</title>
        <style type="text/css">
<!--
.style3 {font-size: 18px}
.style5 {font-weight: bold}
-->
        </style>
</head>
<body>
<div id="tudo">
<div id="conteudo">
    
<s:form action="Aluno!associar.do" method="POST">
<div align="center"><h1>Associar Aluno</h1></div>
  <table width="459" border="0" align="center" cellpadding="0" cellspacing="4">
    <tr>
	   <td colspan="2">
	         <s:actionerror />
	         <s:actionmessage/>
	         <s:fielderror />
	   </td> 
   </tr>    
    <tr>
    	<td>
    		<s:textfield name="codTurma" label="Turma" disabled="true"></s:textfield>
    		<s:hidden name="idTurma"></s:hidden>
    	</td>
    </tr>
    	
   <tr>
    	<td>
			<s:optiontransferselect 
		      label="Seleção de alunos para a turma"
		      leftTitle="Alunos"
		      list="alunos"
		      listKey="id"
		      listValue="nome"
		      emptyOption="true"
		      
		      rightTitle="Selecionados"
		      doubleName="selecionadosSalvos"
		      doubleList="associados"
		      doubleListValue="nome"
		      doubleListKey="id"
		      doubleEmptyOption="true"
		      />
        </td>
    </tr>   
	<tr><td><p>&nbsp;</p></td></tr>
	<tr>
		<td colspan="5" rowspan="2" valign="bottom" align="center"> 
        	<input type="submit" name="salvar" id="salvar" value="Salvar" />
        	<input type="submit" name="menu" id="menu" value=" Menu " />
		</td>
    </tr>
   
  </table>
  <p>&nbsp;</p>
</s:form>

</div>
</div>
</body>
</html>
